package com.ymatou.cs.api.service;

import com.ymatou.app.api.service.TokenLoginAuthCall;
import com.ymt.base.YmatouBaseCall;
import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
/**
*AddReturnExpressCodeCall
*FreeMaker Template自动生成代码
*/
public class AddReturnExpressCodeCall extends  YmatouAutoTestCall{
	private static String opurl ="api/Returns/ReturnBill/AddReturnExpressCode?AccessToken=";
	
//	public AddReturnExpressCodeCall() {
//		super(EnvSetup.getSystemUrl("api_cs"),opurl,"POST","JSON");
//	}
	public AddReturnExpressCodeCall(String sellerid , String password) {
		
		super(EnvSetup.getSystemUrl("api_cs"),opurl + new TokenLoginAuthCall().getToken(sellerid, password) ,"POST","JSON");
	}
	
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
}